Global Index
HTML5 JS API Index > Media Tutorials & Specs

TextTrack

Extends EventTarget.

Properties
TextTrackCueList?
activeCues
If the text track mode of the text track that the TextTrack object represents is not the text track disabled mode, then the activeCues attribute must return a live TextTrackCueList object that represents the subset of the text track list of cues of the text track that the TextTrack object represents whose active flag was set when the script started, in text track cue order.
TextTrackCueList?
cues
If the text track mode of the text track that the TextTrack object represents is not the text track disabled mode, then the cues attribute must return a live TextTrackCueList object that represents the subset of the text track list of cues of the text track that the TextTrack object represents whose end times occur at or after the earliest possible position when the script started, in text track cue order.
DOMString
id
The id attribute returns the track's identifier, if it has one, or the empty string otherwise. For tracks that correspond to track elements, the track's identifier is the value of the element's id attribute, if any. For in-band tracks, the track's identifier is specified by the media resource.
DOMString
inBandMetadataTrackDispatchType
The inBandMetadataTrackDispatchType attribute must return the text track in-band metadata track dispatch type of the text track that the TextTrack object represents.
TextTrackKind
kind
The kind attribute must return the text track kind of the text track that the TextTrack object represents.
DOMString
label
The label attribute must return the text track label of the text track that the TextTrack object represents.
DOMString
language
The language attribute must return the text track language of the text track that the TextTrack object represents.
TextTrackModemode
EventHandleroncuechange
Operations
voidaddCue(TextTrackCue cue)
voidremoveCue(TextTrackCue cue)
Referenced by
HTMLMediaElementaddTextTrack(...)
HTMLTrackElementtrack
TextTrackCuetrack
TextTrackListgetTrackById(...)
TrackEventtrack
TrackEventInittrack